package com.kehutong.wxapi.response;

import org.coraframework.json.annotation.JSONField;

import java.util.List;

/**
 * 获取待分配的离职成员列表响应对象
 * @author: liukunlong
 * @date: 2021-03-04 20:48
 */
public class GetUnassignedListResponse {
    /**
     * errcode
     */ /**
     * errcode : 0
     * errmsg : ok
     * info : [{"handover_userid":"zhangsan","external_userid":"woAJ2GCAAAd4uL12hdfsdasassdDmAAAAA","dimission_time":1550838571},{"handover_userid":"lisi","external_userid":"wmAJ2GCAAAzLTI123ghsdfoGZNqqAAAA","dimission_time":1550661468}]
     * is_last : false
     * next_cursor : aSfwejksvhToiMMfFeIGZZ
     */

    @JSONField(name = "errcode")
    private Integer errcode;
    /**
     * errmsg
     */
    @JSONField(name = "errmsg")
    private String errmsg;
    /**
     * info
     */
    @JSONField(name = "info")
    private List<InfoDTO> info;
    /**
     * isLast
     */
    @JSONField(name = "is_last")
    private Boolean isLast;
    /**
     * nextCursor
     */
    @JSONField(name = "next_cursor")
    private String nextCursor;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public List<InfoDTO> getInfo() {
        return info;
    }

    public void setInfo(List<InfoDTO> info) {
        this.info = info;
    }

    public Boolean getIsLast() {
        return isLast;
    }

    public void setIsLast(Boolean isLast) {
        this.isLast = isLast;
    }

    public String getNextCursor() {
        return nextCursor;
    }

    public void setNextCursor(String nextCursor) {
        this.nextCursor = nextCursor;
    }

    public static class InfoDTO {
        /**
         * handoverUserid
         */ /**
         * handover_userid : zhangsan
         * external_userid : woAJ2GCAAAd4uL12hdfsdasassdDmAAAAA
         * dimission_time : 1550838571
         */

        @JSONField(name = "handover_userid")
        private String handoverUserid;
        /**
         * externalUserid
         */
        @JSONField(name = "external_userid")
        private String externalUserid;
        /**
         * dimissionTime
         */
        @JSONField(name = "dimission_time")
        private Integer dimissionTime;

        public String getHandoverUserid() {
            return handoverUserid;
        }

        public void setHandoverUserid(String handoverUserid) {
            this.handoverUserid = handoverUserid;
        }

        public String getExternalUserid() {
            return externalUserid;
        }

        public void setExternalUserid(String externalUserid) {
            this.externalUserid = externalUserid;
        }

        public Integer getDimissionTime() {
            return dimissionTime;
        }

        public void setDimissionTime(Integer dimissionTime) {
            this.dimissionTime = dimissionTime;
        }
    }
}
